Socket
Socket
Sign inDemoInstall

fixpack

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fixpack

cli tool that cleans up package.json files.


Version published
Weekly downloads
288K
increased by0.66%
Maintainers
2
Weekly downloads
 
Created

What is fixpack?

The fixpack npm package is a tool designed to format and sort the fields in a package.json file according to a predefined order. This helps maintain consistency and readability in the package.json file.

What are fixpack's main functionalities?

Sort and Format package.json

This feature allows you to sort and format the fields in your package.json file. By running the fixpack function and passing the path to your package.json file, it will reorder the fields according to a predefined order and format them for better readability.

const fixpack = require('fixpack');
fixpack('./path/to/package.json');

Custom Configuration

This feature allows you to customize the order in which the fields in your package.json file are sorted. By providing an options object with a custom order array, you can define your own field order.

const fixpack = require('fixpack');
const options = { order: ['name', 'version', 'description', 'main', 'scripts', 'dependencies', 'devDependencies'] };
fixpack('./path/to/package.json', options);

Other packages similar to fixpack

Keywords

FAQs

Package last updated on 03 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc